import java.util.Scanner;

public class Test15 {
    public static void main(String[] args) {
        System.out.println("请输入m:");
        System.out.println("请输入n:");
        Scanner scanner=new Scanner(System.in);
        int m=scanner.nextInt();
        int n=scanner.nextInt();
        prinStar(m,n);
    }
    private static void prinStar(int m,int n){
        int sum=0;
        for(int i=1;i<=m;i++){
            for(int j=1;j<=n;j++){
                System.out.print("*");
            }
            System.out.println( " ");
        }

    }
}
